﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YiLe.Model.Domain;
using YiLe.DAL.Dao;
using YiLe.BLL.Service;

namespace YiLe.BLL.ServiceImpl
{
    public class Xs_CodeService:IXs_CodeService
    {
        private Xs_CodeDao codeDao;

        public Xs_CodeDao CodeDao
        {
            get { return codeDao; }
            set { codeDao = value; }
        }

        public Xs_Code Get(Int32 codeID) 
        {
            return codeDao.Get(codeID);
        }

        public IList<Xs_Code> GetAll() 
        {
            return codeDao.GetAll();
        }

        public int Save(Xs_Code entity)
        {
            throw new NotImplementedException();
        }

        public void Update(Xs_Code entity)
        {
            throw new NotImplementedException();
        }

        public void Delete(Xs_Code entity)
        {
            throw new NotImplementedException();
        }

        public IList<Xs_Code> GetCodesByType(String type)
        {
            return codeDao.GetCodesByType(type);
        }
    }
}
